package com.zhixun.zhlq.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import com.zhixun.zhlq.dao.SysUserMapper;
import com.zhixun.zhlq.entity.SysUserEntity;
import com.zhixun.zhlq.service.SysUserService;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @ClassName: SysUserServiceImpl
 * @Author: hz
 * @Date: 2020-09-11 11:41:01
 * @Description:
 */
@org.springframework.stereotype.Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUserEntity> implements SysUserService {

    @Autowired
    private SysUserMapper sysUserMapper;

    @Override
    public List<SysUserEntity> findBy(Map<String, Object> params) {
        return sysUserMapper.findBy(params);
    }

    @Override
    public SysUserEntity findByUsername(String username) {
        return sysUserMapper.findByUsername(username);
    }

    @Override
    public SysUserEntity getByCode(String code) {
        return sysUserMapper.getByCode(code);
    }

    @Override
    public SysUserEntity getByOpenId(String openId) {
        return sysUserMapper.getByOpenId(openId);
    }

}